using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class P_Sprite : MonoBehaviour
{
    public Sprite[] sprites;
    public SpriteRenderer spriteRenderer;
    public int Index;
    public void ChangeSprite()
    {
        Index = Random.Range(0, sprites.Length);
        spriteRenderer.sprite = sprites[Index];
    }
}
